<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生名单</title>
    <style>
        .table{width: 60%;border: 1px solid silver;text-align: center;}
        .table td,.table th{text-align: center;padding: 7px;font-size: 20px;border: 1px solid silver;}
    </style>
</head>
<body>
    <table class="table" cellspacing="0" cellpadding="0">
        <tr>
            <th>学号</th>
            <th>姓名</th>
            <th>邮箱</th>
        </tr>
        <?php
        $stu_num = count($student);
        for($i = 0;$i<$stu_num;$i++){
        echo "<tr>".
        "<td>".$student[$i]['stu_number']."</td>".
        "<td>".$student[$i]['stu_name']."</td>".
        "<td>".$student[$i]['stu_email']."</td>".
        "</tr>";
    }
    ?>
</table>
</body>
</html>